<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:head>
        <title>IGNORED</title>
    </h:head>
    <h:body>
        <ui:composition template="/WEB-INF/Templates/Template.xhtml">
            <ui:define name="content">
                <div align="center">
                    <h:dataTable cellspacing="5px" 
                                 value="#{rb.deltakere.hentAlleBrukere()}" 
                                 var="alleDeltakere" 
                                 border="1"
                                 styleClass="table"
                                 headerClass="tabellerOverskrift"
                                 rowClasses="oddColumn, evenColumn"
                                 captionClass="overskriftTabell"
                                 width="1000">

                        <f:facet name="caption">#{tekster.utskrift_overskrift1}</f:facet>
                        <h:column rendered="#{rb.sjekkAdmin()}">
                            <f:facet name="header">#{tekster.utskrift_deltakerid}</f:facet>
                            <h:outputText value="#{alleDeltakere.deltaker_id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">#{tekster.Fornavn}</f:facet>
                            <h:outputText value="#{alleDeltakere.fnavn}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">#{tekster.Etternavn}</f:facet>
                            <h:outputText value="#{alleDeltakere.enavn}"/>
                        </h:column>
                        <h:column rendered="#{rb.sjekkBruker()}" >
                            <f:facet name="header">#{tekster.adresse}</f:facet>
                            <h:outputText value="#{alleDeltakere.adresse}"/>
                        </h:column>
                        <h:column rendered="#{rb.sjekkAdmin()}">
                            <f:facet name="header">#{tekster.epost}</f:facet>
                            <h:outputText value="#{alleDeltakere.epost}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">#{tekster.fodtselsaar}</f:facet>
                            <h:outputText value="#{alleDeltakere.faar}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">#{tekster.kjonn}</f:facet>
                            <h:outputText value="#{alleDeltakere.kjonn}"/>
                        </h:column>
                    </h:dataTable>
                    <h:form>
                        <ui:debug hotkey="i"/>
                        <h:commandButton value="#{tekster.Tilbake}" action="/index?faces-redirect=true"/>
                    </h:form>
                </div>
            </ui:define>
        </ui:composition>
    </h:body>
</html>